package com.coffeeloversupportlibrary.coffeelover.domain.article.entity;

import java.util.List;

/**
 * @author puyv
 * @createTime 2021/11/22 8:05
 * @projectName CoffeeLoverSupportLibrary
 * @className Datas.java
 * @description TODO   插件所转换的实体类 Model 层对其解析适配向ViewModel 提供适配数据
 */
public class OriginData {
    private Boolean success;
    private Integer code;
    private String message;
    private DataDTO data;

    public static class DataDTO {
        private List<ArticleListDTO> articleList;

        public static class ArticleListDTO {
            private String articleId;
            private String articleTitle;
            private String articleBanner;
            private Integer articleType;
            private String createTime;
            private String updateTime;
            private Boolean deleted;

            public String getArticleId() {
                return articleId;
            }

            public void setArticleId(String articleId) {
                this.articleId = articleId;
            }

            public String getArticleTitle() {
                return articleTitle;
            }

            public void setArticleTitle(String articleTitle) {
                this.articleTitle = articleTitle;
            }

            public String getArticleBanner() {
                return articleBanner;
            }

            public void setArticleBanner(String articleBanner) {
                this.articleBanner = articleBanner;
            }

            public Integer getArticleType() {
                return articleType;
            }

            public void setArticleType(Integer articleType) {
                this.articleType = articleType;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(String updateTime) {
                this.updateTime = updateTime;
            }

            public Boolean getDeleted() {
                return deleted;
            }

            public void setDeleted(Boolean deleted) {
                this.deleted = deleted;
            }
        }
        public List<ArticleListDTO> getArticleList(){
            return this.articleList;
        }
    }
    public boolean isSuccessful(){
        return this.success;
    }
    public List<DataDTO.ArticleListDTO> getResult(){
        return this.data.getArticleList();
    }
    public String getMessage(){
        return this.message;
    }
}
